package cn.itcast.nems.order.service;


import cn.itcast.nems.order.dao.dataobject.OrderRefundDO;
import cn.itcast.nems.order.dao.entity.OrderRefund;
import cn.itcast.nems.order.dto.OrderRefundDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 退费单-头 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
public interface OrderRefundService extends IService<OrderRefund> {
    List<Map<String, Object>> listOrderRefund(String orderId);

    IPage<OrderRefundDO> listPage(Page<OrderRefundDO> page, OrderRefundDO condition);

    Map<String, Object> orderRefundInfo(String orderRefundId);
    // 付费渠道
    List<Map<String, Object>> paymentchannels(String schoolId);

    // 退费类型
    List<Map<String, Object>> incomeexpensestypes();

    /**
     * 退费单退费
     * @param orderRefundDTO
     * @return
     */
    OrderRefund createOrderRefund(OrderRefundDTO orderRefundDTO);

    /**
     * 退学退费
     * @param orderRefundDTO
     * @return
     */
    OrderRefund createDropoutRefund(OrderRefundDTO orderRefundDTO);

    /**
     * 添加退费单
     * @param orderRefundDTO
     * @return
     */
    OrderRefund createRefund(OrderRefundDTO orderRefundDTO);
    // 退费方式
    List<Map<String, Object>> studentCostTypes();

    String createRefundOrderNo() ;

    cn.itcast.ic.common.bean.Page<Map> searchClazzes(Integer pageNumber, Integer pageSize, OrderRefundDO condition);

    String findNameByCostTypeId(Integer costTypeId)  ;
}
